package com.hzchendou.demo.eventbus.basic;

import com.google.common.eventbus.Subscribe;

/**
 * 事件订阅者
 *
 * @Date: 2020-08-28 16:24
 * @since: 1.0
 */
public class BasicEventSubscriber {
    /**
     * 事件消费
     *
     * @param event
     */
    @Subscribe
    public void consume(BasicEvent event) {
        System.out.println("收到基础事件: " + event.index);
    }
}
